﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Private/SiteAdmin.Master" AutoEventWireup="true"
    CodeBehind="UserList.aspx.cs" Inherits="Obligatorio2013.Pages.UserList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <br />
    <asp:Panel ID="Panel1" runat="server" GroupingText="Ususarios del Sistema" Height="300px"
        Width="827px">

           <center><asp:Label ID="lblMessage" runat="server" Text="" /></center>
   
    <br/>
    <asp:RadioButton ID="rbtAll" runat="server" Checked="True" AutoPostBack="True"
         Text="Todos" GroupName="usuarios" 
        oncheckedchanged="rbtAll_CheckedChanged"/>
    <asp:RadioButton ID="rbtActive" runat="server" Text="Activos" AutoPostBack="True"
        GroupName="usuarios" oncheckedchanged="rbtActive_CheckedChanged"/>
    <asp:RadioButton ID="rbtInactive" runat="server" Text="Suspendidos" AutoPostBack="True"
        GroupName="usuarios" oncheckedchanged="rbtInactive_CheckedChanged"/>
    <br />
        <br/>
            <br/>
    
 

    <asp:GridView ID="gvUsers" runat="server" AllowPaging="True" PageSize="5"
        AutoGenerateColumns="False" AllowSorting="True" OnRowEditing="GridView1_RowEditing"
        EnableSortingAndPagingCallbacks="True" HorizontalAlign="Left" 
               DataKeyNames="UserEmail" AccessKey="5">
        <Columns>
            <asp:BoundField DataField="UserName" HeaderText="Nombre" />
            <asp:BoundField DataField="UserLastName" HeaderText="Apellido"/>
            <asp:BoundField DataField="UserAddress" HeaderText="Direccion" />
            <asp:BoundField DataField="UserPhone" HeaderText="Telefono" />
            <asp:BoundField DataField="UserEmail" HeaderText="Mail" />
            <asp:BoundField DataField="User" HeaderText="Usuario" />
            <asp:BoundField DataField="UserPass" HeaderText="Pass" />
            <asp:BoundField DataField="UserRole" HeaderText="Rol" />
            <asp:BoundField DataField="UserActive" HeaderText="Activo" />
            <asp:BoundField DataField="UserInactiveUntil" HeaderText="Suspendido Hasta" 
                NullDisplayText=" " DataFormatString="{0:d}" />
            <asp:CommandField InsertVisible="False" ShowCancelButton="False" 
                ShowDeleteButton="True" ShowEditButton="True" />
        </Columns>
        <EditRowStyle HorizontalAlign="Left" />
        <FooterStyle HorizontalAlign="Center" />
    </asp:GridView>
    &nbsp;
        </asp:Panel>
</asp:Content>
